	
<div class="zhifu_fangshi">
	<div class="peisong_title_name clearfix">
		<span class="fold-btn">支付方式</span>
		<span class="xiugai_zhifuxinxi paymentTab ctl-btn" >修改</span>		
	</div>
	
	<div id="paymentInfo" style="display:none">
		
		<?php if ($_SESSION['user_id'] == 0): ?>
		<?php else: ?>
		<div class="Balance_of_payments" style="display:none">
			<div class="peisong_xiugai_address">
				<img src="/themes/default/images/plus.jpg" id="balance_plus" style="display:none"/>
				<img src="/themes/default/images/minus.jpg" id="balance_minus" />余额支付
			</div>
			<div class="Balance_of_payments_main">
				 <div class="Balance_of_payments_main_txt">
					 <div class="Balance_of_payments_main_txts">使用账户余额<input type="text" /> 元  </div>
					 <div class="Balance_of_payments_main_txty"> <input type="image" src="themes/default/images/shiyong.jpg" /></div>
					 <div class="Balance_of_payments_main_txtz">您填写的数字大于支付范围</div>
				 </div>    
				 <div class="Balance_of_payments_main_txt">您的账户还有<span><?php echo $this->_var['surplus_amount']; ?></span>。本次余额支付范围<span>￥0</span>~<span>￥999</span></div>
			</div>
		</div>
		<?php endif; ?>
		
		
		
		<div class="Online_Payment">
			<div class="peisong_xiugai_address">
				<input type="radio" value="1" name="pay_online" id="pay_online" checked="checked"/>在线支付
			</div>
			<div class="Online_Payment_main">
				<div class="bank_dajihe">
					<?php $_from = $this->_var['payment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'payment');$this->_foreach['paylist'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['paylist']['total'] > 0):
    foreach ($_from AS $this->_var['payment']):
        $this->_foreach['paylist']['iteration']++;
?>
					<?php if (( $this->_var['payment']['pay_name'] != '货到付款' ) && ( $this->_var['payment']['pay_name'] != '余额支付' )): ?>
					<Div class="bank_lie">
						<div class="bank_input"><input type="radio" value="<?php echo $this->_var['payment']['pay_id']; ?>" name="payment" rel="payment" <?php if ($this->_var['payment']['pay_name'] == '支付宝'): ?>checked="checked"<?php else: ?><?php endif; ?>/></div>
						<div class="bank_img"><img src="themes/default/images/zhifubao.jpg" /></div>
					</Div>
					<?php endif; ?>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					<Div class="bank_lie" style="display:none;">
						<div class="bank_input"><input type="radio" /></div>
						<div class="bank_img"><img src="themes/default/images/bank.jpg" /></div>
					</Div>
				</div>
			</div>
		</div>
		<div class="zhifufangshi">
			<div class="peisong_xiugai_address">
				<input type="radio" id="pay_receipt" name="payment" value="1">货到付款
				<span class="yanzheng_tishi">(为了能及时与您联系，货到付款需验证手机)</span>
			</div>
		</div>
		
		<div class="zhifu_btn fold-parent-btn" id="paymentConfirm"></div>
		
		<?php $_from = $this->_var['payment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'payment');if (count($_from)):
    foreach ($_from AS $this->_var['payment']):
?>
		<?php if ($this->_var['payment']['pay_name'] == "货到付款" && $this->_var['mobile_confirm'] != 1): ?>
		<div class="tishi" style="z-index:999; display:none;" id="mobile_confirm_window">
			<div class="tishi_top"></div>
			<div class="tishi_center">
				<div class="tishi_main">
					<div class="tishi_main_top">
						<div class="tishi_title">手机验证</div>
						<div class="tishi_close" onClick="tishi_main_close()"></div>
					</div>
					<div class="tishi_main_cont" style="display:block;">
						<div class="mobile_phone_title">手机号验证，无需登录，直接购买</div>
						<div class="mobile_phone_input_main">
							<div class="mobile_phone_input_txt">手机号</div>
							<div class="mobile_phone_input"><input type="text" name="cellphonenumber" id="cellphonenumber" value="<?php echo $this->_var['mobile_phone']; ?>" maxlength="11"  onkeyup="value=value.replace(/[^0-9]/g,'');"/></div>
							<div class="mobile_phone_button">
								<input type="button" value="发送验证码" id="send_phone_code" onclick="javascript:sendCode();"/>
								<input type="button" value="发送验证码" id="send_phone_code2" style="display:none;"/>
							</div>
						</div>
						<div class="mobile_phone_input_main" style="margin-top:14px; display:inline;">
							<div class="mobile_phone_input_txt">验证码</div>
							<div class="mobile_phone_input_yanzheng"><input type="text" name="validateCode" value=""/></div>
							<div class="mobile_phone_button"><input type="button" value="验证" onclick="javascript:validateCell();"/></div>
						</div>
					</div>
				</div>
			</div>
			<div class="tishi_btm"></div>
		</div>
		<?php endif; ?>
		<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	</div>
	<div id="paymentInfoText" class="confirmText" origin="请先确认发票信息">请先确认发票信息</div>
</div>  
	

		